package com.yun.blog.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * title        : BlongCategory
 * projectName  : dantouBlog-back
 * description  : 博客文章分类
 * author       : simple
 * date         : 2022/11/23下午5:35
 */

// 自动生成get set toString
@Data
// 对应数据库的表名
@TableName("blog_category")
public class Category {

    @TableId(type = IdType.AUTO)
    private Integer categoryId;
    private String categoryName;
    private String categoryIcon;
    private Integer categoryRank;
    private Boolean isUse;

    @TableField(exist = false)
    private Integer blogCount;
}
